<!DOCTYPE html >
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Vip会员首页</title>
        <link href="/css/share.css" media="screen" rel="stylesheet" type="text/css" >
        <link href="/css/newshare.css" rel="stylesheet" type="text/css" />
        <link href="/css/vip.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/admins/js/jquery/jquery-1.7.2.min.js"></script>
    </head>

    <body>
        <!--topmost-->
        <div class="newsharetop">
            <div class="ntopcen">
                <?php if(!$this->isLogin){?>
                <div class="ntopleft">
                    <div class="nwelcome">
                        <p>欢迎您来到悠奇！</p>
                    </div>
                    <div class="newtoplogin">
                        <a class="ntoplogin" href="/user/login">登陆</a>
                    </div>
                    <div class="newtopzc">
                        <a href="/user/join">立即注册</a>
                    </div>
                </div>
                <?php } else { ?>
                <?php
                    $img = '';
                    $userId = $this->user->Id;
                    $temp_id = sprintf("%09d", $userId);

                    //1级目录
                    $l1 = substr($temp_id, 0, 3);

                    //2级目录
                    $l2 = substr($temp_id, 3, 2);

                    //3级目录
                    $l3 = substr($temp_id, 5, 2);

                    if ($this->user->Pic) {
                        $img = $this->user->Pic;
                        $img = '/data/avatar/' . $l1 . "/" . $l2 . "/" . $l3 . "/" . $img;
                    } else {
                        $img = '/data/avatar/' . "00.png";
                    }
                ?>	
                <div class="ntopleft" style="">
                    <div class="nwelcome">
                        <p>欢迎您！</p>
                    </div>
                    <div class="newmembername">
                        <!--鼠标悬停class="vip-head vipheadon"-->
                        <div class="vip-head">
                            <a class="vipico_<?php echo $this->account->UserGrade>1?($this->account->UserGrade-1):"0";?>" href="javascript:void(0)" title="<?php echo $this->account->UserGradeName;?>"></a>
                            <a class="user-nick" href="javascript:void(0)"><?php echo $this->user->Nikename;?></a>
                            <span class="ntes-nav-select-arr"></span>
                        </div>
                        <div class="newmemberbox" style="display:none;">
                            <div class="newmemberinfo">
                                <div class="newmemberpic">
                                    <a href="javascript:void(0)">
                                        <img src="<?php echo $img; ?>" alt="会员姓名" />
                                    </a>
                                </div>
                                <div class="newmemberx">
                                    <p><a href="/member/home">进入我的账户主页</a></p>
                                    <div class="newmembertc">
                                        <a href="/user/logout">退出</a><i>|</i><a href="/member/profile">个人设置</a>
                                    </div>
                                    <div class="newmembertq">
                                        <label>特权：</label>
                                        <ul>
                                            <li><a href="http://help.uuch.com/?p=167" target="_blank" class="tq1" title="免费仓库"></a></li>
                                            <li><a href="http://help.uuch.com/?p=169" target="_blank" class="tq2" title="免费验货"></a></li>
                                            <li><a href="http://help.uuch.com/?p=171" target="_blank" class="tq3" title="金牌客服"></a></li>
                                            <li><a href="http://help.uuch.com/?p=1134" target="_blank" class="tq4" title="生日特权"></a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ntopemail">
                        <a href="/member/mail" class="emailinfo" title="您有<?php echo $this->mainCount?$this->mainCount:0;?>条未读信息"><?php echo $this->mainCount>0?"<em>$this->mainCount</em>":"";?></a>
                    </div>
                </div>
                <?php } ?>
                <div class="ntopright">
                    <ul>
                        <li><a class="ntopstyleo" href="/">悠奇首页</a></li>

                        <li id="youqi">
                            <div class="ntmyxl">
                                <div class="ntopxiala"><a href="javascript:void(0)">我的悠奇<i></i></a></div>
                                <div class="navselectbox" style="display:none">
                                    <dl>
                                        <dd><a href="/member/mystore">我的云仓库</a></dd>
                                        <dd><a href="/member/myorder">代购的宝贝</a></dd>
                                        <dd><a href="/member/waybill">我的国际运单</a></dd>
                                    </dl>
                                </div>
                            </div>
                        </li>

                        <li><div class="ntopgwc"><a href="/purchase/cart"><i></i>购物车<span><?php echo count($this->cart->Items);?></span>件</a></div></li>
                        <li><div class="ntopkefu"><a href="http://crm2.qq.com/page/portalpage/wpa.php?uin=800035006&f=1&ty=1&aty=0&a=&from=6" target="_blank"><i></i>在线客服</a></div></li>
                        <li id="gongju">
                            <div class="ntmyxl">
                                <div class="ntopxiala"><a href="javascript:void(0)">常用工具<i></i></a></div>
                                <div class="navselectbox" style="display:none;">
                                    <dl>
                                        <dd><a href="/tool/express">国际运费试算</a></dd>
                                        <dd><a href="/tool/track">物流跟踪</a></dd>
                                        <dd><a href="/tool/rate">汇率查询</a></dd>
                                    </dl>
                                </div>
                            </div>
                        </li>
                        <li><a class="ntopstyleo" href="http://help.uuch.com/" target="_blank">帮助中心</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <!--topmost-->

        <div class="viptoptwo">
            <div class="viptcener">
                <div class="viptoplogo">
                    <a href="/"><img src="/images/vip/logo.png" alt="viplogo" /></a>
                </div>
                <div class="vipnav">
                    <ul>
                        <li class="vipnavon"><a class="vipitem" href="/vip/index">会员首页</a><b></b></li>
                        <li><a class="vipitem" href="/store/home" target="_blank">个人云仓库</a></li>
                        <li><a class="vipitem" href="/purchase/index" target="_blank">代购服务</a></li>
                        <li><a class="vipitem" href="/store/express" target="_blank">国际速递</a></li>
                        <li><a class="vipitem" href="/store/up" target="_blank">上门取件</a></li>
                    </ul>
                </div>
            </div>
        </div>


        <div class="vipcenter">
            <div class="vipleft">
                <div class="vipinfobox">
                    <div class="vipinfo">
                        <div class="vippic">	
                            <a href="/member/home"><img src="<?php echo $img; ?>" alt="会员姓名" /></a>
                        </div>
                        <div class="vipziliao">
                            <h2>欢迎！<a href="/member/home"><?php echo $this->user->Nikename;?></a></h2>
                            <p><?php echo $this->user->Email;?></p>
                            <dl>
                                <dt>等级：</dt>
                                <dd><a class="vipico_<?php echo $this->account->UserGrade>1?($this->account->UserGrade-1):"0";?>" href="javascript:void(0)" title="<?php echo $this->account->UserGradeName;?>"></a></dd>
                            </dl>
                        </div>
                    </div>
                    <div class="vipchz">
                        <h2>会员成长</h2>
                        <div class="vipshengji">
                            <div class="jindu">
                                <span style="width:<?php echo ($this->account->Score*100)/$this->account->NextGradeScore;?>%"></span>
                                <em><?php echo $this->account->Score."&nbsp;/&nbsp;".$this->account->NextGradeScore;?></em>
                            </div>
                            <p>你还有<?php echo $this->account->NextGradeScore-$this->account->Score;?>成长值即可升级<span><?php echo $this->account->NextGrade;?></span>会员</p>
                            <ul <?php echo (!$this->IsReceive || (!$this->isBirthday && $this->birthday))?'style="height:75px;"':"";?>>
                                <li>成长值：<?php echo $this->account->NextGradeScore;?>点<a href="javascript:void(0)">查看明细</a></li>
                                <li>升级还需要：<?php echo $this->account->NextGradeScore-$this->account->Score;?>分<a href="javascript:void(0)">查看规则</a></li>
                                <?php if(!$this->IsReceive || (!$this->isBirthday && $this->birthday)){ ?>
                                    <li style="margin-top:5px;">
                                        <?php if(!$this->IsReceive){ ?>
                                            <a class="buttonH2" href="/member/receive" style="margin-left:-10px;" target="_blank"><span>领取会员卡</span></a>
                                        <?php } ?>
                                        <?php if(!$this->isBirthday && $this->birthday){ ?>
                                            <a class="buttonH2" href="javascript:void(0)" id="ReceiveBirthday"><span>生日礼物</span></a>
                                        <?php } ?>
                                    </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                    <div class="viptequan">
                        <h2>我的特权</h2>
                        <ul>
                            <li><a href="http://help.uuch.com/?p=167" target="_blank"><i class="tq1"></i>免费仓库</a></li>
                            <li><a href="http://help.uuch.com/?p=169" target="_blank"><i class="tq2"></i>免费验货</a></li>
                            <li><a href="http://help.uuch.com/?p=171" target="_blank"><i class="tq3"></i>金牌客服</a></li>
                            <li><a href="http://help.uuch.com/?p=1134" target="_blank"><i class="tq4"></i>生日特权</a></li>
                        </ul>
                        <div class="tequanmove">
                            <a class="buttonH2" href="http://help.uuch.com/?p=1153" target="_blank"><span>查看成长特权</span></a>
                        </div>
                    </div>
                </div>
                <div class="viprenwu">
                    <div class="viplm">
                        <h2>会员任务</h2>
                    </div>
                    <div class="viprwlist">
                        <ul>
                            <li><h3><i class="rw1"></i><a href="/member/profile">验证邮箱</a></h3>
                                <?php if($this->email){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/member/profile">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw2"></i><a href="/member/profile">上次头像</a></h3>
                                <?php if($this->pic){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/member/profile">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw3"></i><a href="/member/profile">完成个人资料</a></h3>
                                <?php if($this->userinfo){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/member/profile">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw4"></i><a href="/purchase/index">完成一次代购</a></h3>
                                <?php if($this->order){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/purchase/index">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw5"></i><a href="/member/recharge">完成一次充值</a></h3>
                                <?php if($this->recharge){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/member/recharge">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw6"></i><a href="/store/visiting">完成一次上门取件</a></h3>
                                <?php if($this->visiting){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/store/visiting">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw7"></i><a href="/member/mystore">发一个国际运单</a></h3>
                                <?php if($this->waybill){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="/member/mystore">做任务</a>
                                <?php }?>
                            </li>
<!--                            <li><h3><i class="rw8"></i><a href="javascript:void(0)">绑定微信</a></h3>
                                <?php if($this->weixin){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="javascript:void(0)">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw9"></i><a href="javascript:void(0)">关注微博</a></h3>
                                <?php if($this->weibo){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="javascript:void(0)">做任务</a>
                                <?php }?>
                            </li>
                            <li><h3><i class="rw10"></i><a href="javascript:void(0)">关注facebook</a></h3>
                                <?php if($this->facebook){?>
                                    <em class="vipwan" href="javascript:void(0)"><span></span>已完成</em>
                                <?php }else {?>
                                    <a class="vipzuo" href="javascript:void(0)">做任务</a>
                                <?php }?>
                            </li>-->
                        </ul>
                    </div>
                </div>
                <div class="vipbz">
                    <a href="#"><img src="/images/vip/bz.png" alt="安全保障"/></a>
                </div>
            </div>

            <div class="vipright">
                <div class="vipbanner">
                    <div class="bannerpic">
                        <ul>
                            <li><a href="#"><img src="/images/vip/bannner1.jpg"></a></li>
                        </ul>
                    </div>
                </div>
                <div class="yanshi">
                    <div class="viplm2">
                        <h2>悠奇服务演示</h2>
                    </div>
                    <div class="yanshilist">
                        <ul>
                            <li>
                                <div class="yspic">
                                    <a class="ys1" href="http://help.uuch.com/?p=1036" target="_blank">个人云仓库演示</a>
                                </div>
                                <h2><a href="http://help.uuch.com/?p=1036" target="_blank"><i></i>个人云仓库演示</a></h2>
                                <p>免费仓储空间！</p>
                            </li>
                            <li>
                                <div class="yspic">
                                    <a class="ys2" href="/demo/shop" target="_blank">代购演示</a>
                                </div>
                                <h2><a href="/demo/shop" target="_blank"><i></i>代购演示</a></h2>
                                <p>为海外华人代购中国商品！</p>
                            </li>
                            <li>
                                <div class="yspic">
                                    <a class="ys3" href="/demo/waybill" target="_blank">国际运单演示</a>
                                </div>
                                <h2><a href="/demo/waybill" target="_blank"><i></i>国际运单演示</a></h2>
                                <p>国际运费3-5折！</p>
                            </li>
                            <li>
                                <div class="yspic">
                                    <a class="ys4" href="http://help.uuch.com/?p=1092">上门取件演示</a>
                                </div>
                                <h2><a href="http://help.uuch.com/?p=1092"><i></i>上门取件演示</a></h2>
                                <p>足不出户发国际快递！</p>
                            </li>
                            <li>
                                <div class="yspic">
                                    <a class="ys5" href="http://help.uuch.com/?p=1121">代支付演示</a>
                                </div>
                                <h2><a href="http://help.uuch.com/?p=1121"><i></i>代支付演示</a></h2>
                                <p>解决网购国货支付难题！</p>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="ruhe">
                    <div class="viplm2">
                        <h2>如何巧妙的使用悠奇</h2>
                    </div>
                    <ul>
                        <li>
                            <div class="ruhebox">
                                <div class="ruhetop">
                                    <em>1</em>
                                    <h3>免费注册</h3>
                                </div>
                                <ul>
                                    <li><i></i>立即拥有免费仓库空间</li>
                                    <li><i></i>免费享受个人仓库管家</li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <div class="ruhebox">
                                <div class="ruhetop">
                                    <em>2</em>
                                    <h3>发货至云仓库</h3>
                                </div>
                                <ul>
                                    <li><i></i>自己网上购物的包裹</li>
                                    <li><i></i>悠奇代购的包裹</li>
                                    <li><i></i>亲朋好友寄来的包裹</li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <div class="ruhebox">
                                <div class="ruhetop">
                                    <em>3</em>
                                    <h3>发起国际运单</h3>
                                </div>
                                <ul>
                                    <li><i></i>享3-5折国际运费</li>
                                    <li><i></i>免费集中您的货物打包</li>
                                    <li><i></i>与国际顶级快递商合作</li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <div class="ruhebox">
                                <div class="ruhetop">
                                    <em>4</em>
                                    <h3>支付国际运费</h3>
                                </div>
                                <ul>
                                    <li><i></i>支持paypal、支付宝等</li>
                                    <li><i></i>购买保险可保价</li>
                                    <li><i></i>及时到账</li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <div class="ruhebox">
                                <div class="ruhetop">
                                    <em>5</em>
                                    <h3>签收包裹</h3>
                                </div>
                                <ul>
                                    <li><i></i>24小时闪电发货</li>
                                    <li><i></i>国外配送到家</li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                </div>

                <div class="ruheshiyong">
                    <div class="ruheyck">
                        <div class="viplm2">
                            <h2>如何使用个人云仓库</h2>
                        </div>
                        <div class="ruheycklist">
                            <ul>
                                <li><i></i><a href="http://help.uuch.com/?p=1036" target="_blank">我想自己、亲人、朋友发包至个人云仓库？</a></li>
                                <li><i></i><a href="http://help.uuch.com/?p=1036" target="_blank">我想用自己的淘宝账号，使用个人云仓库地址购物？</a></li>
                                <li><i></i><a href="http://help.uuch.com/?p=343" target="_blank">我想用悠奇代购服务购买商品，存放在个人云仓库？</a></li>
                                <li><i></i><a href="http://help.uuch.com/?p=1092" target="_blank">我想用悠奇上门取件服务，取得的包裹存放在个人云仓库？</a></li>
                            </ul>
                        </div>
                    </div>

                    <div class="ruhefk">
                        <div class="viplm2">
                            <h2>我该如何付款给悠奇</h2>
                        </div>
                        <div class="ruhefkbox">
                            <ul>
                                <li><a class="fk1" href="http://help.uuch.com/?p=1174">PayPal</a></li>
                                <li><a class="fk2" href="http://help.uuch.com/?p=1200">国内银行卡</a></li>
                                <li><a class="fk3" href="http://help.uuch.com/?p=1211">西联汇款</a></li>
                                <li style="width:200px;"><a class="fk4" href="http://help.uuch.com/?p=1206">线下转账</a></li>
                                <li style="width:200px;"><a class="fk5" href="http://help.uuch.com/?p=1225">国际信用卡</a></li>
                            </ul>
                        </div>
                        <div class="fupic">
                            <img src="/images/vip/fukuan.png" alt="支付方式" />
                        </div>
                    </div>

                </div>

            </div>

            <div style="clear:both"></div>

        </div>

        <div class="f_end">
            <div class="f_us"><a href="http://help.uuch.com/?p=47">关于悠奇网</a><span>|</span><a href="http://help.uuch.com/?p=52">联系我们</a></div>
            <p>Copyright &copy;2010 悠奇网中国商品购物平台! Inc. All rights reserved.<a href="#">粤ICP备12085307号</a></p>
        </div>
        <?php if(!$this->isBirthday && $this->birthday){ ?>
            <div class="tanchuang" style="height: 300px;display:none;">
                <div class="nui-msgbox">
                    <div class="nui-msgbox-hd" style="font-size: 16px;">系统消息</div>
                    <a class="nui-msgbox-close" title="关闭"><b></b></a>
                </div>
                <div class="wenti_box" style="display:none;">
                    <div style="margin-left: 20px;font-size: 16px;margin-top: 20px;width: 560px;">
                        <h3>尊敬的会员：</h3>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;恭喜您，您的生日礼物领取成功。您将获得以下优惠：</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、获取生日礼物-<?php echo $this->account->BirthdayName;?>。</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;祝您生日快乐！</p>
                        <p style="margin-top: 20px;margin-left: 150px;"><a href="javascript:void(0)" class="exitproblem" ><span class="countdown">20</span>秒后自动关闭，立即关闭。</a></p>
                    </div>
                </div>
                <div class="wenti_box2" style="display:none;">
                    <div style="margin-left: 20px;font-size: 16px;margin-top: 20px;width: 560px;">
                        <h3>尊敬的会员：</h3>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对不起，您的生日礼物领取失败。可能的原因如下：</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、可能是您已经领取过了，不能重复领取。</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、今天可能不是您的生日，如果是，请您到个人设置中查看，是否是以前填写错误。</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、可能是您的等级还没有到领取的等级，生日礼物只有V3等级以上（包括V3）的会员才能领取。</p>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4、可能是您登录失败，请退出重新登录领取或者联系悠奇在线客服。</p>
                        <p style="margin-top: 20px;margin-left: 150px;"><a href="javascript:void(0)" class="exitproblem" ><span class="countdown">20</span>秒后自动关闭，点击立即关闭。</a></p>
                    </div>
                </div>
            </div>
            <div class="houtai_overlay" style="display:none;"></div>     
            <script>
                var leftSeconds = 20;
                setInterval("CountDown()", 1000);
                $(".nui-msgbox-close").click(function(){
                    $("div.houtai_overlay").hide();
                    $("div.tanchuang").hide();
                    location.href='/vip/index';
                });
                $(".exitproblem").click(function(){
                    $("div.houtai_overlay").hide();
                    $("div.tanchuang").hide();
                    location.href='/vip/index';
                }); 
                function CountDown() {
                    if(leftSeconds<=0){
                        $(".exitproblem").click();
                    }
                    leftSeconds--;
                    $(".countdown").html(leftSeconds);
                }
                $("#ReceiveBirthday").click(function(){
                    $.post('/vip/birthday', {}, function(data){
                        if(data == 1){
                            $("div.wenti_box").show();
                            $("div.wenti_box2").hide();
                        }else{
                            $("div.wenti_box").hide();
                            $("div.wenti_box2").show();
                        }
                        $("div.tanchuang").show();
                        $("div.houtai_overlay").show();
                    }, 'json');
                });
            </script>   
        <?php } ?>
    </body>
</html>
<script>
    $(".newmembername").hover(function(){
        $("div.vip-head").addClass("vipheadon");
        $("div.newmemberbox").show();
    },function(){
        $("div.vip-head").removeClass("vipheadon");
        $("div.newmemberbox").hide();
    });
    $("#youqi").hover(function(){
        $(this).addClass("ntoxlon");
        $(this).find(".navselectbox").show();
    },function(){
        $("#youqi").removeClass("ntoxlon");
        $(".navselectbox").hide();
    });
    $("#gongju").hover(function(){
        $(this).addClass("ntoxlon");
        $(this).find(".navselectbox").show();
    },function(){
        $("#gongju").removeClass("ntoxlon");
        $(".navselectbox").hide();
    });
</script>